﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Transport.Core.Models.Customers;

namespace Transport.Core.Models.Parcels
{
    public class Parcel
    {
        [Key]
        public int ParcelId { get; set; }
        public string ParcelName { get; set; }
        public string TrackingNumbers { get; set; }
        [ForeignKey("Customer")]
        public int? CustomerId { get; set; }
        public virtual Customer Customer { get; set; }
        public int DeliverFromId { get; set; }
        public int DeliverToId { get; set; }
        [StringLength(128)]
        public string ToAddress { get; set; }
        [StringLength(128)]
        public string Receiver { get; set; }
        public DateTime? ReceivedDate { get; set; }
        public int PaymentType { get; set; }
        public int TotalWeight { get; set; }
        public decimal TotalCost { get; set; }
        public DateTime DateOfSending { get; set; }
        public DateTime CreateDate { get; set; }
        public bool IsHandInput { get; set; }
        public int Status { get; set; }
        public virtual ICollection<Tracking> Trackings { get; set; }
        public bool IsDeleted { get; set; }
        public int MyOfficeId { get; set; }
        public int DeliverToOfficeId { get; set; }
        public bool IsApproval { get; set; }
        public int ApprovalBy { get; set; }
        public DateTime? ApprovalDate { get; set; }
        public bool Collected { get; set; }
        public bool IsEms { get; set; }
        public string Note { get; set; }
    }
}
